
<%- include header %>
	<div class="row">
		<div class="span8">
			<% posts.forEach(function (post, index) { %>
				<p><h3><a href="/u/<%= post.name %>/<%= post.time.day %>/<%= post.title %>"><%= post.title %></a></h3></p>
				<p class="info">
				Author：<a href="/u/<%= post.name %>"><%= post.name %></a> | 
				Date：<%= post.time.minute %>
				</p>
			<% }) %>
			<div class="pagination">
				<ul>
					<li>
						<a href="#">上一页</a>
					</li>
					<li>
						<a href="#">1</a>
					</li>
					<li>
						<a href="#">2</a>
					</li>
					<li>
						<a href="#">3</a>
					</li>
					<li>
						<a href="#">4</a>
					</li>
					<li>
						<a href="#">5</a>
					</li>
					<li>
						<a href="#">下一页</a>
					</li>
				</ul>
			</div>
		</div>
		<div class="span4">
			<% if (success) { %>
				<div class="alert alert-success">
				 <button type="button" class="close" data-dismiss="alert">×</button>
				<h4>
				</h4> <strong>Success!</strong> <%= success %>
			</div>
			<% } %>
			<% if (error) { %>
				<div class="alert alert-error">
				 <button type="button" class="close" data-dismiss="alert">×</button>
				<h4>
				</h4> <strong>Error!</strong> <%= error %>
			</div>
			<% } %>
		</div>
	</div>
	
	<%- include footer %>